/**
 * @file    Expression classname is undefined on line 2, column 15 in Templates/Classes/Class.java.
 * @author  Haseeb Yousaf
 * @see     LICENSE (MIT style license file)
 * @version 1.0
 * @date    Nov 16, 2011 12:53:45 AM
 */
package carrello.impl.controller;
import static carrello.util.EntityManagerUtil.getEntityManager;

public abstract class AbstractCTRL {
    
    /**
     * This method starts the unit of work for the controller classes
     */
    public static void init()
    {
        getEntityManager().beginUnitOfWork();
    }
    
    /**
     * This methods ends the unitOfWork for the current session
     */
    public static void end()
    {
        getEntityManager().endUnitOfWork();
    }
    
    
    
}
